package com.lzm.ydpt.mvp.modelimpl;

import com.byt.framlib.basemvp.basebean.BaseResponseBean;
import com.byt.framlib.basemvp.boby.FormBodys;
import com.lzm.ydpt.entity.riding.OrderBean;
import com.lzm.ydpt.mvp.api.APIManager;
import com.lzm.ydpt.mvp.contract.HomeContract;

import java.util.List;

import io.reactivex.Observable;


/**
 * 类名称：HomeModelImpl
 * 类描述：模型实现
 */
public class HomeModelImpl implements HomeContract.Model {


    @Override
    public Observable<BaseResponseBean<List<OrderBean>>> onOrderList(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onOrderList(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<Integer>> onEdtState(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onEdtState(formBodys);
    }
}